* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 400px;
}

.container {
    width: 350px;
    min-height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    text-align: center;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header p {
    font-size: 12px;
    opacity: 0.9;
}

.content {
    padding: 20px;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.status-icon {
    font-size: 20px;
    margin-right: 10px;
}

.status-text {
    font-weight: 500;
    color: #495057;
}

.status.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.status.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.status.loading {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.controls {
    text-align: center;
}

.export-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    min-width: 150px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.export-btn:active {
    transform: translateY(0);
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 测试连接按钮样式 */
.test-connection-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    min-width: 120px;
}

.test-connection-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
}

.test-connection-btn .btn-icon {
    margin-right: 6px;
    font-size: 14px;
}

.info {
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info h3 {
    font-size: 14px;
    color: #495057;
    margin-bottom: 10px;
}

.info ul {
    list-style: none;
    padding: 0;
}

.info li {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.info li:before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
}

/* 自动导出设置样式 */
.auto-export-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}

.auto-export-section h3 {
    font-size: 14px;
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
}

.auto-export-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 复选框样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #28a745;
    border-color: #28a745;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 间隔设置样式 */
.interval-setting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.interval-setting label {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

.interval-setting select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.interval-setting select:focus {
    outline: none;
    border-color: #28a745;
}

/* 自动导出状态样式 */
.auto-export-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.auto-export-status .status-text {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.auto-export-status .next-export {
    font-size: 12px;
    color: #6c757d;
}

/* 测试按钮样式 */
.test-btn {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-width: 120px;
}

.test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
}

.test-btn .btn-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* 重置按钮样式 */
.reset-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-width: 120px;
}

.reset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4);
}

.reset-btn .btn-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* 测试刷新按钮样式 */
.refresh-test-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-width: 120px;
}

.refresh-test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.4);
}

.refresh-test-btn .btn-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* 定时器测试按钮样式 */
.timer-test-btn {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-width: 120px;
}

.timer-test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(111, 66, 193, 0.4);
}

.timer-test-btn .btn-icon {
    margin-right: 6px;
    font-size: 14px;
}

.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.footer small {
    color: #6c757d;
    font-size: 11px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading .status-icon {
    animation: spin 1s linear infinite;
}
